home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
Illustrator 6.0 SDK r1 Mac
/
AI Plugin Interface
/
AIDocument.h
< prev
next >
Wrap
Text File
|
1995-12-21
|
3KB
|
137 lines
/**
AIDocument.h
Copyright (c) 1995 Adobe Systems Incorporated.
All Rights Reserved
Adobe Illustrator 6.0 Document Suite.
**/
#ifndef __AIDocument__
#define __AIDocument__
/*******************************************************************************
**
** Imports
**
**/
#include "AITypes.h"
#include "AIFixedMath.h"
#include "AIFileFormat.h"
#if Macintosh
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=mac68k
#endif
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif
#endif
/*******************************************************************************
**
** Constants
**
**/
#define kAIDocumentSuite "AI Document Suite"
#define kAIDocumentVersion 2
#define kAIDocumentChangedNotifier "AI Document Changed Notifier"
enum {
kUnknownUnits = 0,
kInchesUnits,
kCentimetersUnits,
kPointsUnits
};
/*******************************************************************************
**
** Types
**
**/
typedef struct {
Fixed width, height;
Boolean previewPatterns;
Boolean showPlacedImages;
short pageView;
Fixed outputResolution;
Boolean splitLongPaths;
Boolean useDefaultScreen;
Boolean printTiles;
Boolean tileFullPages;
} AIDocumentSetup;
#if Macintosh
typedef FSSpec PlatformDocumentFileSpecification;
typedef THPrint PlatformDocumentPrintRecord;
#endif
/*******************************************************************************
**
** Suite
**
**/
typedef struct {
MACPASCAL FXErr (*GetDocumentFileSpecification) ( PlatformDocumentFileSpecification *file );
MACPASCAL FXErr (*GetDocumentPageOrigin) ( FixedPoint *origin );
MACPASCAL FXErr (*SetDocumentPageOrigin) ( FixedPoint *origin );
MACPASCAL FXErr (*SetDocumentRulerOrigin) ( FixedPoint *origin );
MACPASCAL FXErr (*GetDocumentRulerUnits) ( short *units );
MACPASCAL FXErr (*SetDocumentRulerUnits) ( short units );
MACPASCAL FXErr (*GetDocumentCropBox) ( FixedRect *cropBox );
MACPASCAL FXErr (*GetDocumentPrintRecord) ( PlatformDocumentPrintRecord *print );
MACPASCAL FXErr (*SetDocumentPrintRecord) ( PlatformDocumentPrintRecord print );
MACPASCAL FXErr (*GetDocumentSetup) ( AIDocumentSetup *setup );
MACPASCAL FXErr (*SetDocumentSetup) ( AIDocumentSetup *setup );
MACPASCAL FXErr (*GetDocumentModified) ( Boolean *modified );
MACPASCAL FXErr (*SetDocumentModified) ( Boolean modified );
MACPASCAL FXErr (*GetDocumentFileFormat) ( AIFileFormatHandle *fileFormat );
MACPASCAL FXErr (*SetDocumentFileFormat) ( AIFileFormatHandle fileFormat );
MACPASCAL FXErr (*GetDocumentFileFormatParameters) ( PlatformFileFormatParameters *parameters );
MACPASCAL FXErr (*SetDocumentFileFormatParameters) ( PlatformFileFormatParameters parameters );
MACPASCAL FXErr (*RedrawDocument) ( void );
} AIDocumentSuite;
#if Macintosh
#if PRAGMA_IMPORT_SUPPORTED
#pragma import off
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=reset
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif